<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title>登录</title>
<link href="/dist/css/all_min.css" tppabs="http://www.115yz.com/xjkc/dist/css/all_min.css" rel="stylesheet">
</head>
<body>
<!--页头 start-->
<div id="header" class="kc-fixed kc-boxBody kc-commonHeight kc-commonbg">
    <div class="kc-rel">   
        <div class="float-left kc-cannel kc-pos">
             <div class="icon-bar" onclick="backUrl()"></div>
        </div>
        <a class="float-left kc-title textCenter">登录</a>
         <!-- <img src="/dist/img/msg.png" class="kc-msg"> -->
    </div>
</div>
<!--页头 end-->
<!--主体 start-->
<div id="bodyer" class="kc-padbody kc-boxBody bank-body " style="background: white">
  <form  id="form">
       <img id='login-logo' width="100%" src="/dist/img/login-logo.png"> 
    <div class="bank-block login-item">
          <div><span><img width="100%" class="img-m" src="/dist/img/m.png"></span><input type="text" name="mobile" placeholder="请输入您的手机号"></div>
          <div style="border-bottom: 1px solid #E0E0E0;"><span><img width="100%" class='img-lock'src="/dist/img/lock.png"></span><input type="text" name="verify" placeholder="请输入验证码" class="verify"><span><img  src="/dist/img/yzm.png" onclick="sendVerify()"></span></div>  
    </div>
    <div class="bank-block">
          <div id="bank-block-last" style="margin-top:12%;"><img src="/dist/img/point.png" class="circle" onclick="changeImg(this)"><span>我已阅读并同意<a href="#">《现金滴滴服务协议》</a></span></div>
          <div class="comfirm"><img width="100%" src="/dist/img/login-now.png"></div>
        
    </div>
  </form>
</div>
<!--主体 end-->
<script src="/resourse/jquery/jquery-1.11.3.min.js" tppabs="http://www.115yz.com/xjkc/resourse/jquery/jquery-1.11.3.min.js"></script>
<script src="/dist/js/all_min.js" tppabs="http://www.115yz.com/xjkc/dist/js/all_min.js"></script>
<script src="/dist/js/july.js" tppabs="http://www.115yz.com/xjkc/dist/js/all_min.js"></script>
<script type="text/javascript">
$('.comfirm').click(function(){
      let phone = $('input[name="mobile"]').val();
      let result_p = isPhoneNumber(phone);
      if( result_p==false) {return false};
      
      let verify = $('input[name="verify"]').val();
      let result_v = isEmpty(verify,"验证码");
      if( result_v==false) {return false};

      let proto =isReadProtocol();
      if( proto==false) {return false};

	$.ajax({
		url:'/index.php/index/loginCheck',
		data:$('#form').serialize(),
		type:'post',
		success:function(data){
            let json = JSON.parse(data)
            if(json.status==1){
                    openTip(json.msg)
                    setTimeout(url(),'3000')
            }else{
                openTip(json.msg)
                return false
            }
        },
        error:function(data){
                openTip('网络异常，请联系管理员');
                return false;   
        }
	})
})
</script>
</body>
</html>